<div id="sidebar" class="sidebar responsive ace-save-state">
    <script type="text/javascript">
        try {
            ace.settings.loadState('sidebar')
        } catch (e) {
        }
    </script>
    <!-- 菜单列表开始 -->
    <ul class="nav nav-list">
        <!--一级菜单遍历开始-->
        {foreach name="menus" item="v"}
        {if condition="!empty($v['_child'])"}
        <li class='{in name="v.id" value="$id_curr_arr"}open active{/in}' id="nav-{$v.id}">
            <a href="javascript:void(0);" class="dropdown-toggle">
                <i class="menu-icon {$v.icon}"></i>
                <span class="menu-text">{$v.title}</span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <ul class="submenu">
                <!--二级菜单遍历开始-->
                {foreach name="v._child" item="vv"}
                {if condition="!empty($vv['_child'])"}
                <li class='{in name="vv.id" value="$id_curr_arr"}open active{/in}' id="nav-{$vv.id}">
                    <a href="javascript:void(0);" class="dropdown-toggle">
                        <i class="menu-icon fa fa-caret-right"></i>
                        {$vv.title}
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu">
                        <!--三级菜单遍历开始-->
                        {foreach name="vv._child" item="vvv"}
                        <li class='{in name="vvv.id" value="$id_curr_arr"}active{/in}' id="nav-{$vvv.id}">
                            <a data-icon="{$v.icon}" class="nav-left" href="{:nav_url($vvv['name'])}">
                                <i class="menu-icon fa fa-caret-right"></i>
                                {$vvv.title}
                            </a>
                            <b class="arrow"></b>
                        </li>
                        {/foreach}
                        <!--三级菜单遍历结束-->
                    </ul>
                </li>
                {else /}
                <li class='{in name="vv.id" value="$id_curr_arr"}active{/in}' id="nav-{$vv.id}">
                    <a data-icon="{$v.icon}" class="nav-left" href="{:nav_url($vv['name'])}">
                        <i class="menu-icon fa fa-caret-right"></i>
                        {$vv.title}
                    </a>
                    <b class="arrow"></b>
                </li>
                {/if}
                {/foreach}
                <!--二级菜单遍历结束-->
            </ul>
        </li>
        {else /}
        <li class='{in name="v.id" value="$id_curr_arr"}active{/in}' id="nav-{$v.id}">
            <a data-icon="{$v.icon}" class="nav-left" href="{:nav_url($v['name'])}">
                <i class="menu-icon {$v.icon|default='fa fa-caret-right'}"></i>
                {$v.title}
            </a>
            <b class="arrow"></b>
        </li>
        {/if}
        {/foreach}
        <!--一级菜单遍历结束-->
    </ul><!-- 菜单列表结束 -->
    <!-- 菜单栏缩进开始 -->
    <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
        <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right">

        </i>
    </div><!-- 菜单栏缩进结束 -->
</div>